import { App } from "vue";
// import Table from "@pureadmin/table";
import Status from "@/components/ui/status.vue";
import TreeSelect from "@/components/ui/tree-select.vue";
import Dict from "@/components/ui/dict.vue";
import XTable from "@/components/Table";
import XSelectInput from "@/components/ui/select-input.vue";
import ImageUpload from "@/components/ui/image.vue";
import CofirmButton from "@/components/ui/cofirm-button.vue";
import XDatePicker from "@/components/ui/date-picker.vue";
import XTableBar from "@/components/XTableBar/src/bar";

export function useViazyPlus(app: App) {
  // 注册组件

  app.component("x-status", Status);
  app.component("x-select", XSelectInput);
  app.component("x-tree-select", TreeSelect);
  app.component("x-dict", Dict);
  app.component("x-image", ImageUpload);
  app.component("x-date-picker", XDatePicker);
  app.component("x-cofirm-button", CofirmButton);
  app.component("x-table", XTable);
  app.component("x-table-bar", XTableBar);
}
